package com.snowfield.lb47.lbconfig.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.snowfield.lb47.lbconfig.mapper.FrontProxyAclMapper;
import com.snowfield.lb47.lbconfig.domain.FrontProxyAcl;
import com.snowfield.lb47.lbconfig.service.IFrontProxyAclService;

/**
 * 代理ACLService业务层处理
 * 
 * @author snowfield
 * @date 2024-04-09
 */
@Service
public class FrontProxyAclServiceImpl implements IFrontProxyAclService 
{
    @Autowired
    private FrontProxyAclMapper frontProxyAclMapper;

    /**
     * 查询代理ACL
     * 
     * @param id 代理ACL主键
     * @return 代理ACL
     */
    @Override
    public FrontProxyAcl selectFrontProxyAclById(Long id)
    {
        return frontProxyAclMapper.selectFrontProxyAclById(id);
    }

    /**
     * 查询代理ACL列表
     * 
     * @param frontProxyAcl 代理ACL
     * @return 代理ACL
     */
    @Override
    public List<FrontProxyAcl> selectFrontProxyAclList(FrontProxyAcl frontProxyAcl)
    {
        return frontProxyAclMapper.selectFrontProxyAclList(frontProxyAcl);
    }

    /**
     * 新增代理ACL
     * 
     * @param frontProxyAcl 代理ACL
     * @return 结果
     */
    @Override
    public int insertFrontProxyAcl(FrontProxyAcl frontProxyAcl)
    {
        frontProxyAcl.setCreateTime(DateUtils.getNowDate());
        return frontProxyAclMapper.insertFrontProxyAcl(frontProxyAcl);
    }

    /**
     * 修改代理ACL
     * 
     * @param frontProxyAcl 代理ACL
     * @return 结果
     */
    @Override
    public int updateFrontProxyAcl(FrontProxyAcl frontProxyAcl)
    {
        frontProxyAcl.setUpdateTime(DateUtils.getNowDate());
        return frontProxyAclMapper.updateFrontProxyAcl(frontProxyAcl);
    }

    /**
     * 批量删除代理ACL
     * 
     * @param ids 需要删除的代理ACL主键
     * @return 结果
     */
    @Override
    public int deleteFrontProxyAclByIds(Long[] ids)
    {
        return frontProxyAclMapper.deleteFrontProxyAclByIds(ids);
    }

    /**
     * 删除代理ACL信息
     * 
     * @param id 代理ACL主键
     * @return 结果
     */
    @Override
    public int deleteFrontProxyAclById(Long id)
    {
        return frontProxyAclMapper.deleteFrontProxyAclById(id);
    }
}
